<template>
  <div></div>
</template>

<script>
import PermissionType from '@/model/PermissionType'
import { mapGetters } from 'vuex'

export default {
  mounted() {
    const permissions = this.$store.getters.permissions;
    if(permissions.includes(PermissionType.sysAdmin)){
      this.$router.push({ path : '/sys'})
    }else if(permissions.includes(PermissionType.workLog_self)){
      this.$router.push({ path : '/worklog'})
    }else{
      this.$router.push({ path : '/nopermission'})
    }
  },
  computed: {
    ...mapGetters([
      'name'
    ])
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
